#!/usr/bin/make -f
# -*- makefile -*-

# Predesys - Predesys Bluetooth Proxy
# Version: 0.1.0
# Author: Jose A. Jimenez <jajimc@gmail.com>
# License: GPL 3.0 (see "license" file)

NAME 		= predesys-bluetooth-proxy

DESTDIR		= ""
INITDDIR	= $(DESTDIR)/etc/init.d
CONFDIR		= $(DESTDIR)/etc/$(NAME)
MAINDIR 	= $(DESTDIR)/usr/share/$(NAME)

SRCDIR 		= src
EXECFILE 	= predesys-bluetooth-proxy.py
CONFFILE	= configuration.xml
ABOUTFILE	= about
LICENSEFILE	= license

compile:

install:	basic-install

basic-install:
	mkdir -p $(CONFDIR) $(MAINDIR)
	
	install -p -m 0644 $(SRCDIR)/*.py $(MAINDIR)
	install -p -m 0644 $(ABOUTFILE) $(MAINDIR)
	install -p -m 0644 $(LICENSEFILE) $(MAINDIR)
	chmod 0744 $(MAINDIR)/$(EXECFILE)
	install -p -m 0644 $(SRCDIR)/$(CONFFILE) $(CONFDIR)

uninstall:
	rm -rf $(CONFDIR)
	rm -rf $(MAINDIR)
